From: Philip Prindeville Date: Sat, 7 Jun 2025 20:38:26 +0000 (-0600) Subject: isc-dhcp: distinguish between hexstrings and strings X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=a97218b6c77e4caf27c0013a84318ed79e29b68d;p=feed%2Fpackages.git isc-dhcp: distinguish between hexstrings and strings It's a minor difference and they're handled the same, but that might change as we move to Kea. Signed-off-by: Philip Prindeville --- diff --git a/net/isc-dhcp/files/dhcpd.init b/net/isc-dhcp/files/dhcpd.init index 9ea159f6ed..f67ed9f9b5 100755 --- a/net/isc-dhcp/files/dhcpd.init +++ b/net/isc-dhcp/files/dhcpd.init @@ -110,7 +110,7 @@ typeof() { /^(true|false)$/ { print "bool\n"; next; } /^\d+$/ { print "integer\n"; next; } /^"[^"]*"$/ { print "string\n"; next; } -/^[0-9a-fA-F]{2,2}(:[0-9a-fA-F]{2,2})*$/ { print "string\n"; next; } +/^[0-9a-fA-F]{2,2}(:[0-9a-fA-F]{2,2})*$/ { print "hexstring\n"; next; } { print "other\n"; next; } ' } @@ -190,7 +190,7 @@ append_dhcp_options() { for value in $values; do # detect type of $value and quote if necessary case $(typeof "$value") in - ip|bool|integer|string) + ip|bool|integer|string|hexstring) ;; other) value="\"$value\""